## 1. 直角在左下角
size = int(input("请输入一个数字："))
i = 1
while i <= size:
    print("*" * i)
    i += 1

print("-----------")

## 2. 直角在左上角
i = size
while i >= 1:
    print("*" * i)
    i -= 1

print("-----------")

## 3. 直角在右下角
i = 1
while i <= size:
    print(" " * (size - i), "*" * i)
    i += 1

print("-----------")

## 4. 直角在右上角
i = size
while i >= 1:
    print(" " * (size - i), "*" * i)
    i -= 1
